package utils;

public class StringUtils {
    public static int countSubstring(String input, String target) {
        int count = 0;
        int index = 0;
        while (index != -1) {
            index = input.indexOf(target, index);
            if (index != -1) {
                count++;
                index += target.length();
            }
        }
        return count;
    }

}
